package com.xframe.xdal.core.tran;


import java.lang.annotation.*;

/**
 * 事务注解
 *
 * @author xufeng
 * @version 1.0
 * @date 2022-09-28
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.ANNOTATION_TYPE})
public @interface XTransaction {

    /**
     * 设置一个事务级别
     */
    int tranLevel() default TransactionIsolation.TRANSACTION_READ_COMMITTED;
}
